module.exports = {
    lintOnSave: false,
    publicPath: './',
    devServer: {
        open: true,
        port: 8080,
        proxy: {
            '/api': {
                target: 'http://localhost:5000/api', // target host location
                ws: true, // proxy websockets 
                changeOrigin: true, // needed for virtual hosted sites
                pathRewrite: {
                    '^/api': '' // rewrite path
                }
            },
        }
    }
}